Using Dijkstra's algorithm to find the shortest path

join shbcf.ru